﻿nav {
    min-width: 16px;
    position: absolute;
    top: 1em;
    left: 1em;
    background: #222;
    padding: .5em;
    border-radius: 3px;
    cursor: default;
    z-index: 2;
}

    nav span {
        background: url('') no-repeat;
        *background: url(/Images/menu.png) no-repeat; /* For IE 6 and 7 */
        padding-left: 20px;
        line-height: 16px;
        display: inline-block;
    }

    .no-touch nav:hover,
    nav.open {
        -webkit-box-shadow: rgba(0, 0, 0, 0.79) 5px 5px;
        box-shadow: rgba(0, 0, 0, 0.79) 5px 5px;
    }

        .no-touch nav:hover > ul,
        nav.open > ul {
            max-height: 300px;
            max-width: 200px;
        }

    nav ul {
        list-style: none;
        padding: 0 0 0 .8em;
    }

        nav ul li {
            padding: 0;
            margin: 0;
        }

    nav > ul {
        padding: 0 0 0 1.2em;
        max-height: 0;
        max-width: 45px;
        margin: 0;
        overflow: hidden;
        -moz-transition: all .4s ease;
        -o-transition: all .4s ease;
        -webkit-transition: all .4s ease;
        transition: all .4s ease;
    }

        nav > ul > li > a {
            margin: .8em 0;
            display: block;
        }

        nav > ul > li.planned {
            margin: 0 .8em;
            display: block;
        }

    nav a + ul > li:last-child {
        margin-bottom: .8em;
    }
